import java.io.*;
import java.util.*;

public class ConvertStockToSMW {
	public static void main(String[] args)  throws IOException {
		Scanner f1 = new Scanner(new File(args[0] + ".stock"));
		Scanner f2 = new Scanner(new File(args[0] + ".stock.2"));
		Scanner f5 = new Scanner(new File(args[0] + ".stock.5"));
		Scanner f10 = new Scanner(new File(args[0] + ".stock.10"));
		Scanner f50 = new Scanner(new File(args[0] + ".stock.50"));
		Scanner f100 = new Scanner(new File(args[0] + ".stock.100"));
		Scanner f150 = new Scanner(new File(args[0] + ".stock.150"));
		Scanner f200 = new Scanner(new File(args[0] + ".stock.200"));
		
		//System.out.println("date\ttoday\t2\t5\t10\t50\t100\t150\t200");
		while(f1.hasNext()) {
			String date = f1.next();
			String s1 = f1.next();
			String right_price = f1.next();
			String s2 = ((s2 = f2.nextLine()).equals("\n") ? "\t" : s2);
			String s5 = ((s5 = f5.nextLine()).equals("\n") ? "\t" : s5);
			String s10 = ((s10 = f10.nextLine()).equals("\n") ? "\t" : s10);
			String s50 = ((s50 = f50.nextLine()).equals("\n") ? "\t" : s50);
			String s100 = ((s100  = f100 .nextLine()).equals("\n") ? "\t" : s100 );
			String s150 = ((s150 = f150.nextLine()).equals("\n") ? "\t" : s150);
			String s200 = ((s200  = f200 .nextLine()).equals("\n") ? "\t" : s200 );
			System.out.printf("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", date, s1, s2, s5, s10, s50, s100, s150, s200, right_price);

		}
	
	}
}